package cn.ppwx.crm.modules.sys.web.template;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.ppwx.crm.modules.sys.service.template.TemplateService;

@Controller
public class TemplateController {

	@Autowired 
	private TemplateService  templateService;
	
	
	
    @ResponseBody
    @RequestMapping(value = "${frontPath}/queryTemplate")
    public String queryTemplate() {

    
    	List<Map<String, Object>> list = templateService.queryTemplate();
    	
    	if(list!=null&&list.size()>0){
    	  return "success";
    	}else{
    		return "fail";
    	}
    	
    
    	
    }
	
	
	
	
	
}
